a=str(input())
# print(a)
b=int(len(a))
# print(b)
c=True
for i in range(b) :
    if a[0+i]==a[b-i-1]:
        c=True
    else:
        c=False
if c==True :
    print("Yes")
elif c==False:
    print("No")